home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / s-taprob.ads < prev    next >
Text File  |  1996-01-30  |  4KB  |  104 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --      S Y S T E M . T A S K I N G . P R O T E C T E D _ O B J E C T S     --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.9 $                             --
  10. --                                                                          --
  11. --       Copyright (c) 1991,1992,1993,1994, FSU, All Rights Reserved        --
  12. --                                                                          --
  13. -- GNARL is free software; you can redistribute it  and/or modify it  under --
  14. -- terms  of  the  GNU  Library General Public License  as published by the --
  15. -- Free Software  Foundation;  either version 2, or (at  your  option)  any --
  16. -- later  version.  GNARL is distributed  in the hope that  it will be use- --
  17. -- ful, but but WITHOUT ANY WARRANTY;  without even the implied warranty of --
  18. -- MERCHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. -- eral Library Public License  for more details.  You should have received --
  20. -- a  copy of the GNU Library General Public License along with GNARL;  see --
  21. -- file COPYING.LIB.  If not,  write to the  Free Software Foundation,  675 --
  22. -- Mass Ave, Cambridge, MA 02139, USA.                                      --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. with System.Compiler_Exceptions;
  27. --  Used for, Exception_ID
  28.  
  29. package System.Tasking.Protected_Objects is
  30.    --  This interface is described in the document
  31.    --  Gnu Ada Runtime Library Interface (GNARLI).
  32.  
  33.    procedure Initialize_Protection
  34.      (Object           : Protection_Access;
  35.       Ceiling_Priority : Integer);
  36.  
  37.    procedure Finalize_Protection
  38.      (Object : Protection_Access);
  39.  
  40.    procedure Lock
  41.      (Object : Protection_Access);
  42.  
  43.    procedure Lock_Read_Only
  44.      (Object : Protection_Access);
  45.  
  46.    procedure Unlock
  47.      (Object : Protection_Access);
  48.  
  49.    procedure Protected_Entry_Call
  50.      (Object    : Protection_Access;
  51.       E         : Protected_Entry_Index;
  52.       Uninterpreted_Data : System.Address;
  53.       Mode      : Call_Modes;
  54.       Block     : out Communication_Block);
  55.  
  56.    procedure Wait_For_Completion
  57.      (Call_Cancelled : out Boolean;
  58.       Block          : in out Communication_Block);
  59.  
  60.    procedure Wait_Until_Abortable (Block : in out Communication_Block);
  61.  
  62.    procedure Cancel_Protected_Entry_Call
  63.      (Call_Cancelled : out Boolean;
  64.       Block          : in out Communication_Block);
  65.  
  66.    procedure Next_Entry_Call
  67.      (Object    : Protection_Access;
  68.       Barriers  : Barrier_Vector;
  69.       Uninterpreted_Data : out System.Address;
  70.       E         : out Protected_Entry_Index);
  71.  
  72.    procedure Complete_Entry_Body
  73.      (Object           : Protection_Access;
  74.       Pending_Serviced : out Boolean);
  75.  
  76.    procedure Exceptional_Complete_Entry_Body
  77.      (Object           : Protection_Access;
  78.       Pending_Serviced : out Boolean;
  79.       Ex               : Compiler_Exceptions.Exception_ID);
  80.  
  81.    procedure Requeue_Protected_Entry
  82.      (Object     : Protection_Access;
  83.       New_Object : Protection_Access;
  84.       E          : Protected_Entry_Index;
  85.       With_Abort : Boolean);
  86.  
  87.    procedure Requeue_Task_To_Protected_Entry
  88.      (New_Object : Protection_Access;
  89.       E          : Protected_Entry_Index;
  90.       With_Abort : Boolean);
  91.  
  92.    function Protected_Count
  93.      (Object : Protection;
  94.       E      : Protected_Entry_Index)
  95.       return   Natural;
  96.  
  97.    procedure Broadcast_Program_Error
  98.      (Object : Protection_Access);
  99.  
  100.    procedure Raise_Pending_Exception
  101.      (Block : Communication_Block);
  102.  
  103. end System.Tasking.Protected_Objects;
  104.